package io.gitee.tziye.core.id;

import io.gitee.tziye.RenaiClient;

public abstract class IdOperator {

    protected final RenaiClient renaiClient;

    public IdOperator(RenaiClient renaiClient) {
        this.renaiClient = renaiClient;
    }

    public abstract long generate();

    public abstract long generate(RenaiIdSpec renaiIdSpec);

    public abstract String generateCode(RenaiIdSpec renaiIdSpec);

    public abstract int delete(String prefix);
}
